Skip to content

Fix/dirty rect#1159

Open
100pah wants to merge 8 commits into
releasefrom
fix/dirty-rect
Open

Fix/dirty rect#1159
100pah wants to merge 8 commits into
releasefrom
fix/dirty-rect

Conversation

@100pah

@100pah 100pah commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Fix dirty rect

Broken by v6.1.0.

Enhance Element Animation

  1. Extend animationProps (accepting a sentinel value ELEMENT_ANIMATION_PROPS_NONE) to allow stopping animations on specific props only, providing more fine-grained control than el.stopAnimation.
  2. Unify the behaviors of el.animateTo/el.animateFrom callbacks (done, aborted and during). Comprehensive test cases are added.
    2.1. Add the call to during(1) before the call to done when no animator is added in the call of el.animateTo/el.animateFrom.
    2.2. Fix during failing to be called after animators[0] is removed by a subsequent el.animateTo/el.animateFrom.
    2.3. Support an option cleanCb to discard previous callbacks, by which a pattern is enabled: align the lifetime of callbacks to per call to el.animateTo/el.animateFrom, otherwise, residual callbacks may cause unexpected behaviors.
    2.4. Clarify the usage of force.
  3. Support duration: 0; previously a NaN was assign to props.
  4. Fix rounding error in animation interpolation; previously target value may not be reached in some cases.
  5. Add comprehensive test cases for Element Animation APIs.

Platform

Unify all timer to platformApi.getTime() - previously some places were missed.

Test Utilities

Upgrade unit test infrastructure.

100pah added 2 commits July 2, 2026 02:50
…ION_PROPS_NONE) to allow stopping animations on specific props only, providing more fine-grained control than `el.stopAnimation`.

2. Unify the behaviors of `el.animateTo`/`el.animateFrom` callbacks (`done`, `aborted` and `during`). Comprehensive test cases are added.
2.1. Add the call to `during(1)` before the call to `done` when no animator is added in the call of `el.animateTo`/`el.animateFrom`.
2.2. Fix `during` failing to be called after `animators[0]` is removed by a subsequent `el.animateTo`/`el.animateFrom`.
2.3. Support an option `cleanCb` to discard previous callbacks, by which a pattern is enabled: align the lifetime of callbacks to per call to `el.animateTo`/`el.animateFrom`, otherwise, residual callbacks may cause unexpected behaviors.
2.4. Clarify the usage of `force`.
3. Support `duration: 0`; previously a `NaN` was assign to props.
4. Fix rounding error in animation interpolation; previously target value may not be reached in some cases.
5. Add comprehensive test cases for Element Animation APIs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant